﻿using SqlSugar;
using System;

namespace IconYuan.Model.Entity.Systems
{
    /// <summary>
    /// 系统区域
    /// </summary>
    [SugarTable("t_region")]
    public class Region
    {
        /// <summary>
        /// 自增id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public int id { get; set; }
        /// <summary>
        /// 区域名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 上级id
        /// </summary>
        public int pid { get; set; }
        /// <summary>
        /// 层级(1省级 2市级 3区/县级)
        /// </summary>
        public int level { get; set; }
        /// <summary>
        /// 区域编码
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 省份ID
        /// </summary>
        public int province_id { get; set; }
        /// <summary>
        /// 省名称
        /// </summary>
        public string province { get; set; }
        /// <summary>
        /// 城市名称
        /// </summary>
        public string city { get; set; }
        /// <summary>
        /// 区域名称拼音
        /// </summary>
        public string sell { get; set; }=string.Empty;  
    }
}
